import 'package:architecture/os_size.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';

import '../../../widgets/text_button.dart';
import 'extend_text/extend_text_page.dart';
import 'extend_text_field/extend_text_field_page.dart';
import 'flutter_candies_controller.dart';

class flutterCandiesPage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return GetBuilder<FlutterCandiesController>(
        init: FlutterCandiesController(),
        builder: (controller) {
          return Scaffold(
              appBar: AppBar(title: Text('fluttercandies')),
              body: Container(
                  margin: EdgeInsets.all(20),
                  height: windowHeight,
                  child: Wrap(
                      alignment: WrapAlignment.start,
                      crossAxisAlignment: WrapCrossAlignment.start,
                      spacing: 20,
                      runSpacing: 20,
                      children: [
                        MyTextButton(
                          text: "extend_text",
                          confirm: () {
                            Get.to(ExtendTextPage());
                          },
                        ),
                        MyTextButton(
                          text: "extend_text_field",
                          confirm: () {
                            Get.to(ExtendTextFieldPage());
                          },
                        ),
                        MyTextButton(
                          text: "extend_image",
                          confirm: () {},
                        ),
                      ])));
        });
  }
}
